class Monkey:
    def __init__(self,name):
        self.name = name

    def eat(self):
        if self.name == '六耳猕猴':
            print(f'我是{self.name},我吊打孙悟空!')
        else:
            print(f'我是{self.name},我爱吃{self.name}糖')


monkey1 = Monkey('金丝猴')
monkey1.eat()

monkey2 = Monkey('六耳猕猴')
monkey2.eat()